import React from 'react';
import dynamic from 'dva/dynamic';
import { Route } from 'dva/router';
//import { Switch } from 'dva/router';

//import SearchBarMy from '../components/SearchBar/SearchBar';
//import NavBottomBar from '../components/NavBottomBar/NavBottomBar';

export default function goodsClassRoute(app) {

  const GoodsClass = dynamic({
    app,
    models: () => {
      return [
           import(/* webpackChunkName: "goodsClassModel" */'../models/goodsClass/goodsClassModel'),
      ];
    },
    component: () => import(/* webpackChunkName: "goodsClass" */'../routes/goodsClass/goodsClass'),
  });

  return (
    [
      <Route key="/goodsClass" exact path="/goodsClass" component={GoodsClass}/>
    ]
  );
}
